package g.m.springcloud.service.impl;


import g.m.springcloud.dao.UserDao;
import g.m.springcloud.entities.User;
import g.m.springcloud.service.UserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Value("${server.port}")
    private String serverPort;

    @Override
    public void create(User user) {
        System.out.println();
        userDao.create(user);
    }
}
